Update {node_counter} table programatically in drupal

Posted by wiifm69 on Stack Overflow See other posts from Stack Overflow or by wiifm69
Published on 2010-03-20T06:58:14Z Indexed on 2010/03/20 7:01 UTC
Read the original article Hit count: 580

I currently use the statistics module (core) on my Drupal 6 install. This increments a count in the {node_counter} table every time the node is viewed, and this works.

My question is - can I programmatically increment this counter as well? I am looking to achieve this when users interact with content created from views (say click a lightbox), so being able to update the table with AJAX would be ideal.

I have done a quick search on d.o and there doesn't appear to be any modules that stick out straight away. Does anyone have any experience with this?

© Stack Overflow or respective owner

Related posts about drupal

Related posts about drupal-6